﻿@{
    ViewBag.Title = "笔趣阁";//Model["Novel"].Title;
        //ViewData["Title"] =Model["Novel"].Title;
}

<div class="row">
    <div class="col">
        <div class="card">
            <div class="card-body detail">
                <nav aria-label="breadcrumb" class="nav-breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">笔趣阁</a></li>
                        <li class="breadcrumb-item"><a href="#">@Model["Novel"].Category</a></li>
                        <li class="breadcrumb-item active" aria-current="page">@(Model["Novel"].Title)最新章节目录</li>
                    </ol>
                </nav>

                <div class="item">
                    <div id="maininfo">
                        <div class="info">
                            <h2>@Model["Chapter"].Title</h2>
                            <div class="bottem1">
                                <span>阅读量</span>
                                <span>@Model["Views"]</span>
                                <a href="">投推荐票</a>
                                @if (Model["PrevChapter"] != null)
                                {
                                    <a asp-route-nid="@Model["PrevChapter"].NovelId" asp-route-cid="@Model["PrevChapter"].Id">上一章</a>
                                    @: ←
                                }
                                <a asp-action="Chapter" asp-route-id="@Model["Novel"].Id">
                                    @Model["Chapter"].Title
                                    章节目录
                                </a>
                                @if (Model["NextChapter"] != null)
                                {
                                    @: →
                                    <a asp-route-nid="@Model["NextChapter"].NovelId" asp-route-cid="@Model["NextChapter"].Id">下一章</a>
                                }
                                <a href="">加入书签</a>
                                <a href="">错误/举报</a>
                            </div>
                        </div>
                        <div id="content">
                            @foreach (var item in Model["Chapter"].Contents)
                            {
                                <p >@Html.Raw(item)</p>
                            }
                            
                            

                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>
</div>


